
This resource address can be used to update the properties for the specified task.
| Response Headers | |
|---|---|
| Content-type | The MIME type of the data in the response
body. Depending upon the value of the format parameter or Accept header, either
application/xml or application/json. |
Upon success, MarkLogic Server returns status code 204 (No Content). If the payload is malformed or the privilege does not exist, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin and security rolehttp://marklogic.com/xdmp/privileges/manage-admin
http://marklogic.com/xdmp/privileges/manage
http://marklogic.com/xdmp/privileges/switch-task-user
manage role plus one of the following granular privileges:
http://marklogic.com/xdmp/privileges/admin/grouphttp://marklogic.com/xdmp/privileges/admin/group/{group-ID}http://marklogic.com/xdmp/privileges/admin/group/scheduled-taskhttp://marklogic.com/xdmp/privileges/admin/group/scheduled-task/{group-ID}http://marklogic.com/xdmp/privileges/switch-task-userThe security role is required to set the task-user property.
task-enabled. The rest of
properties listed below are read-only. Note: The properties described here are
for XML payloads. In general they are the same for JSON, with the exception that, in JSON,
task-days is expressed in singular form. For example, in JSON,
task-days is instead task-day and the format is as shown in the
following example.
scheduled-task-relationsThis is a complex structure with the following children:
relationThis is a complex structure with the following children:
qualifiersThis is a complex structure with the following children:
qualifierThis is a complex structure with the following children:
urireftyperefidrefnamerefurireftyperefrolerefidrefnamerefrelation-idtask-idtask-enabledtask-pathtask-roottask-typetask-periodtask-month-daytask-daysThis is a complex structure with the following children:
task-daytask-start-datetask-start-timetask-timestamptask-usertask-priority
curl -X PUT --anyauth -u admin:admin -H "Content-Type:application/json" \
-d '{"task-enabled": false}' \
http://localhost:8002/manage/v2/tasks/15443907690397240566/properties?group-id=Default
==> Changes the "task-enabled" of the task, "15443907690397240566," to "false".